#ifndef __GPRS_COMMAND_H_
#define __GPRS_COMMAND_H_

#include <stdint.h>

/*return error*/
#define GPRS_OK         0
#define GPRS_NOK       -1
#define GPRS_OVERTIME  -2
#define GPRS_BUSY      -3
#define GPRS_CON_LOST  -4

extern int8_t gprsRuntime(void);
extern int8_t gprsReset(void);
extern int8_t gprsActiveCheck(void);
extern int8_t gprsSetMuxCon(void);
extern int8_t gprsCheckMuxCon();
extern int8_t gprsStartTCP(uint8_t *ip,uint32_t port_num);
extern int8_t gprsCheckCon(void);
extern int32_t gprsTCPsend(int8_t channel,uint8_t *buf, uint32_t len);
extern int32_t gprsTCPsendMux(int8_t channel,uint8_t *buf, uint32_t len);
extern int32_t gprsTCPsendMuxDebug(int8_t channel,uint8_t *buf, uint32_t len);
extern int32_t gprsTCPreadMux(int8_t channel,uint8_t *buf, uint32_t len);
extern int8_t gprsCloseCon(int8_t channel);
extern int8_t gprsCheckSIM(void);
extern int8_t gprsSetMT(void);
extern int8_t gprsDefinePDP(void);
extern int8_t gprsActivatePDP(void);


#endif
